/**
 * All rights reserved. This material is confidential and proprietary to 7ROAD SQ team.
 */
package com.road.entity.lottery;

import java.util.Date;

import com.road.entity.base.DataObject;
import com.road.entity.base.Option;

public class LotteryTempInfo extends DataObject {
	private String uuid; // 模板ID;
	private int types; // 类型;
	private boolean isOpen; // 是否打开;
	private Date openDate; // 开始日期;
	private Date stopDate; // 结束日期;
	private int dayMaxCount; // 每天最大累加次数;
	private int oneNeedPoint; // 一次所需消费钻石;
	private int property1; // 扩展1;
	private int property2; // 扩展2;
	private String property3; // 扩展3;
	private String property4; // 扩展4;
	private Date lastOpenDate; // 上一次开始日期;

	

	public String getUuid() {
		return uuid;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	/**
	 * <pre>
	 * 类型
	 * </pre>
	 */
	public void setTypes(int types) {
		this.types = types;
	}

	/**
	 * <pre>
	 * 类型
	 * </pre>
	 */
	public int getTypes() {
		return this.types;
	}

	/**
	 * <pre>
	 * 是否打开
	 * </pre>
	 */
	public void setIsOpen(boolean isOpen) {
		if (this.isOpen != isOpen) {
			this.isOpen = isOpen;
			setOp(Option.Update);
		}
	}

	/**
	 * <pre>
	 * 是否打开
	 * </pre>
	 */
	public boolean getIsOpen() {
		return this.isOpen;
	}

	/**
	 * <pre>
	 * 开始日期
	 * </pre>
	 */
	public void setOpenDate(Date openDate) {
		if (this.openDate == null || !this.openDate.equals(openDate)) {
			this.openDate = openDate;
			setOp(Option.Update);
		}
	}

	/**
	 * <pre>
	 * 开始日期
	 * </pre>
	 */
	public Date getOpenDate() {
		return this.openDate;
	}

	/**
	 * <pre>
	 * 结束日期
	 * </pre>
	 */
	public void setStopDate(Date stopDate) {
		if (this.stopDate != stopDate) {
			this.stopDate = stopDate;
			setOp(Option.Update);
		}
	}

	/**
	 * <pre>
	 * 结束日期
	 * </pre>
	 */
	public Date getStopDate() {
		return this.stopDate;
	}

	/**
	 * <pre>
	 * 每天最大累加次数
	 * </pre>
	 */
	public void setDayMaxCount(int dayMaxCount) {
		if (this.dayMaxCount != dayMaxCount) {
			this.dayMaxCount = dayMaxCount;
			setOp(Option.Update);
		}
	}

	/**
	 * <pre>
	 * 每天最大累加次数
	 * </pre>
	 */
	public int getDayMaxCount() {
		return this.dayMaxCount;
	}

	/**
	 * <pre>
	 * 一次所需消费钻石
	 * </pre>
	 */
	public void setOneNeedPoint(int oneNeedPoint) {
		if (this.oneNeedPoint != oneNeedPoint) {
			this.oneNeedPoint = oneNeedPoint;
			setOp(Option.Update);
		}
	}

	/**
	 * <pre>
	 * 一次所需消费钻石
	 * </pre>
	 */
	public int getOneNeedPoint() {
		return this.oneNeedPoint;
	}

	/**
	 * <pre>
	 * 扩展1
	 * </pre>
	 */
	public void setProperty1(int property1) {
		if (this.property1 != property1) {
			this.property1 = property1;
			setOp(Option.Update);
		}
	}

	/**
	 * <pre>
	 * 扩展1
	 * </pre>
	 */
	public int getProperty1() {
		return this.property1;
	}

	/**
	 * <pre>
	 * 扩展2
	 * </pre>
	 */
	public void setProperty2(int property2) {
		if (this.property2 != property2) {
			this.property2 = property2;
			setOp(Option.Update);
		}
	}

	/**
	 * <pre>
	 * 扩展2
	 * </pre>
	 */
	public int getProperty2() {
		return this.property2;
	}

	/**
	 * <pre>
	 * 扩展3
	 * </pre>
	 */
	public void setProperty3(String property3) {
		if (this.property3 == null || !this.property3.equals(property3)) {
			this.property3 = property3;
			setOp(Option.Update);
		}
	}

	/**
	 * <pre>
	 * 扩展3
	 * </pre>
	 */
	public String getProperty3() {
		return this.property3;
	}

	/**
	 * <pre>
	 * 扩展4
	 * </pre>
	 */
	public void setProperty4(String property4) {
		if (this.property4 == null || !this.property4.equals(property4)) {
			this.property4 = property4;
			setOp(Option.Update);
		}
	}

	/**
	 * <pre>
	 * 扩展4
	 * </pre>
	 */
	public String getProperty4() {
		return this.property4;
	}

	/**
	 * <pre>
	 * 上一次开始日期
	 * </pre>
	 */
	public void setLastOpenDate(Date lastOpenDate) {
		if (this.lastOpenDate != lastOpenDate) {
			this.lastOpenDate = lastOpenDate;
			setOp(Option.Update);
		}
	}

	/**
	 * <pre>
	 * 上一次开始日期
	 * </pre>
	 */
	public Date getLastOpenDate() {
		return this.lastOpenDate;
	}

	public String toString() {
		StringBuffer sb = new StringBuffer();
		sb.append("uuid:		").append(uuid).append("\n");
		sb.append("types:		").append(types).append("\n");
		sb.append("isOpen:		").append(isOpen).append("\n");
		sb.append("openDate:		").append(openDate).append("\n");
		sb.append("stopDate:		").append(stopDate).append("\n");
		sb.append("dayMaxCount:		").append(dayMaxCount).append("\n");
		sb.append("oneNeedPoint:		").append(oneNeedPoint).append("\n");
		sb.append("property1:		").append(property1).append("\n");
		sb.append("property2:		").append(property2).append("\n");
		sb.append("property3:		").append(property3).append("\n");
		sb.append("property4:		").append(property4).append("\n");
		sb.append("lastOpenDate:		").append(lastOpenDate).append("\n");
		return sb.toString();
	}
}